import request from '@/utils/request'

// 获取周工单统计数据
export function getWeekWorkOrdersCount (params) {
    return request({
        url: '/nsk/generalOverview/getWeekWorkOrdersCount',
        method: 'get',
        params
    })
}

// 获取echarts数据
export function getEchartsData (params) {
    return request({
        url: '/nsk/generalOverview/getWorkOrdersCountByLevel1',
        method: 'get',
        params
    })
}

// 获取本月和今天工单数
export function getMonthAndDayWorkOrdersCount (params) {
    return request({
        url: '/nsk/generalOverview/getMonthAndDayWorkOrdersCount',
        method: 'get',
        params
    })
}

// 获取每月督办工单统计
export function getWorkOrdersMonthCountByIdc (params) {
    return request({
        url: '/nsk/generalOverview/getWorkOrdersMonthCountByIdc',
        method: 'get',
        params
    })
}

// 获取工单列表数据
export function getWorkOrderList (params) {
    return request({
        url: '/nsk/workOrdersAi//listOverview',
        method: 'get',
        params
    })
}

// 查询每个月的某个类型工单的统计图
export function getWorkOrdersMonthCount (params) {
    return request({
        url: '/nsk/generalOverview/getWorkOrdersMonthCount',
        method: 'get',
        params
    })
}